import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from './network/network'
import * as icons from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'dayjs/locale/zh-cn'
import animated  from 'animate.css'
import locale from "element-plus/lib/locale/lang/zh-cn";
//阿里图标
import './assets/icon/iconfont'
import './assets/icon/iconfont.css'

const app = createApp(App)

//全局注册图标
Object.keys(icons).forEach(key => {
  app.component(key, icons[key])
})
//全局挂载
app.use(ElementPlus, {locale})
app.config.globalProperties.$http=axios
app.use(ElementPlus)
app.use(animated)
app.use(store)
app.use(router)

app.mount('#app')
